project(net-access-audit)

#编译ui文件
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTOUIC ON)
SET(CMAKE_AUTORCC ON)

# 使用的Qt模块
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets REQUIRED)

add_executable(net-access-audit
    main.cpp
    widget.cpp
    pcap_monitor.cpp
    net_access_audit_manager.cpp
)

target_link_libraries(net-access-audit PRIVATE
    pcap
    pthread
    common
    Qt5::Core
    Qt5::Gui
    Qt5::Widgets
)
